<template>
  <div>
    <button @click="AddCount">+</button><span> {{value}} </span><button @click="SubCount">-</button>
  </div>
</template>

<script>
export default {
    props:{
      value:{
        type: Number,
      }
    },
    methods:{
      AddCount(){
        this.$emit('input', this.value + 1)
      },
      SubCount(){
        this.$emit('input', this.value - 1)
        }
    }
}
</script>

<style>

</style>
